package com.mindskip.xzs.domain.dto.admin.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserCreateDTO {

    private Integer id;

    //@NotNull //不能为null
    @NotBlank(message = "用户名不能为空") //不能为null或者长度为0
    private String userName;

    //密码
    private String password;

    @NotBlank(message = "真实姓名不能为空") //不能为null或者长度为0
    //真实姓名
    private String realName;

    //年龄
    private String age;

    //状态
    private Integer status;

    //性别
    private Integer sex;

    //生日
    private String birthDay;

    //手机号
    private String phone;

    //角色
    private Integer role;

    //年级
    private Integer userLevel;

}
